package com.mshop.service;

import java.util.List;

import com.mshop.fw.modules.CommonService;
import com.mshop.po.Shop;
import com.mshop.util.QL;

public class ShopService extends CommonService {

	public List<Shop> list(int startRows, int rows) {
		return dao.find(Shop.class, QL.HQL.Shop.LIST, new Object[] {},
				startRows, rows);
	}

	public Long getCount() {
		return dao.getCount(QL.HQL.Shop.GET_COUNT, null);
	}

	public void save(Shop Shop) {
		dao.save(Shop);
	}

	public Shop load(String id) {
		return dao.load(Shop.class, new Long(id));
	}

	public Shop get(String id) {
		return dao.get(Shop.class, new Long(id));
	}

	public void delete(String id) {
		dao.delete(this.get(id));
	}

}
